Fk.geoloc = (function() {
    function _geolocate(handleGeolocation, handleNoGeolocation){
        // Try W3C Geolocation (Preferred)		
        if(navigator.geolocation) {
            this.browserSupportFlag = true;
            navigator.geolocation.getCurrentPosition(function(position) {
                handleGeolocation(position.coords.latitude, position.coords.longitude);
            }, function() {
                handleNoGeolocation();
            });
        // Browser doesn't support Geolocation
        } else {
            handleNoGeolocation();
        }
    }
    
    return{
        geolocate: _geolocate
    };
}());